package day13.thread01;

/**
 * @author Xiao
 * @date 2021/8/5
 */
public class ThreadDemo06 {
    /**
     * 线程休眠
     *      static void sleep(long millis): 使当前正在执行的线程停留（暂停执行）指定的毫秒数
     */
    public static void main(String[] args) throws InterruptedException {
        System.out.println("睡觉了");
        Thread.sleep(3000);
        System.out.println("睡醒了");
        MyRunnable03 mr = new MyRunnable03();
        Thread t = new Thread(mr);
        t.start();
    }
}
